<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .movie-list{
    width: 100%;
    padding:5px 0px;
}
.movie-img>img{
    height: 90px;
    width: 64px;
    float: left;
    margin-right: 8px;
    padding-top: 5px;
    padding-left: 10px;
}
.right-info{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ededed;
    padding:0px 0px 5px 3px
}
.right-info>ul{
    /* 运算符前后都需要保留一个空格,否则会失效 */
    width: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
    padding:5px 0px;
    font-size: 13px;
    color: #666;
}
.right-info>ul>li{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.movie-info .name{
    font-size: 16px;
    font-weight: bold;
    color: #000;
}
.movie-info .score>span{
    font-weight: bold;
    font-size: 14px;
    color:#faaf00;
}

.btn>button{
    width: 48px;
    padding:5px 12px;
    margin: 10px 15px;
    border:none;
    border-radius: 5px;
    font-size: 12px;
}
.btn>.buy-btn{
    background-color: #f03d37;
    color: #fff;
}
.btn>.pre-btn{
    background-color: #3c9fe6;
    color: #fff;
}
    </style>
</head>
<body>
    <div class="movie-list" @click="toMovieDetail(movie.id)">
        <div class="movie-img">
            <img v-lazy="movie.img" alt="">
        </div>
        <div class="right-info">
            <ul class="movie-info">
                <li class="name">{{movie.nm}}</li>
                <li class="score" v-if="movie.globalReleased&&movie.sc!==0">观众评<span>{{movie.sc}}</span></li>
                <li style="font-size: 14px;color: #888" v-if="movie.globalReleased&&movie.sc===0">暂无评分</li>
                <li class="score" v-if="!movie.globalReleased"><span>{{movie.wish}}</span>想看</li>
                <li class="actor">{{movie.star}}</li>
                <li class="showinfo" v-if="movie.globalReleased">{{movie.showInfo}}</li>
                <li class="showTime" v-if="!movie.globalReleased">{{movie.rt}}上映</li>
            </ul>
            <div class="btn">
                <button class="buy-btn" v-if="movie.globalReleased">购票</button>
                <button class="pre-btn" v-if="!movie.globalReleased">预售</button>
            </div>
        </div>
    </div>
</body>
</html>